package rj.servlet;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
import java.io.PrintWriter;

@WebServlet(name = "ShowInfomation", value = "/ShowInfomation")
public class ShowInfomation extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html;charset=utf-8");
        PrintWriter out  =  response.getWriter();
        out.println("<html><body>");
        out.println("<h1>个人信息</h1>");
        out.println("<p>专业：软件工程</p>");
        out.println("<p>班级：软件21-1</p>");
        out.println("<p>学号：202103020106</p>");
        out.println("<p>姓名：郭少谋</p>");
        out.println("<p>性别：男</p>");
        out.println("<p>年龄：22</p>");
        out.println("</body></html>");
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
